//
//  NetworkConstants.m
//  HelloWorld
//
//  Created by Martin Le C. on 5/13/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "NetworkConstants.h"
// -----Header constants
UInt8 const PROTOCOL = 0x10;	// Protocol version 15 (YMSG 15)
UInt8 const MAGIC[4] = { 'Y','M','S','G' };
UInt8 const VERSION[4] = { 0x00,0x10,0x00,0x00 };
UInt8 const VERSION_HTTP[4] = { 0x0d,0x00,0xc8,0x00 };// chu y 0xc8
NSInteger const YMSG9_HEADER_SIZE = 20;
NSString* const  CLIENT_VERSION = @"9.0.0.1389";
// -----Cookies in array (see Session.getCookies())
NSInteger const COOKIE_Y = 0;
NSInteger const COOKIE_T = 1;
NSInteger const COOKIE_C = 2;
// -----Default timouts (seconds)
NSInteger const LOGIN_TIMEOUT = 60;
// -----Ping timeout
NSInteger const PING_TIMEOUT = 60*20;	// 20 minutes
// -----Buzz string
NSString* const BUZZ = @"<ding>";

